<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>propsData Option 全局扩展的数据传递</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
<h1>propsData Option 全局扩展的数据传递</h1>
<hr>
<div id="app">
    <!--自定义标签-->
    <header></header>
</div>
<script type="text/javascript">
    var header_a=Vue.extend({
      template:`<div><a>{{message}}-{{a}}</a></div>`,
      data(){
        return {
          message:'hello world!'
        }
      },
      props:['a']
    })
    new header_a({propsData:{
      a:123
    }}).$mount('header')
</script>
</body>
</html>